home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / share / alsa / cards / VIA8233A.conf < prev    next >
Text File  |  2006-01-09  |  3KB  |  212 lines

  1. #
  2. # Configuration for the VIA8233A chip with 4/6 multi-channel support
  3. #
  4.  
  5. <confdir:pcm/front.conf>
  6.  
  7. VIA8233A.pcm.front.0 {
  8.     @args [ CARD ]
  9.     @args.CARD {
  10.         type string
  11.     }
  12.     type hw
  13.     card $CARD
  14.     device 0
  15. }    
  16.  
  17. # default with dmix/dsnoop
  18. VIA8233A.pcm.default {
  19.     @args [ CARD ]
  20.     @args.CARD {
  21.         type string
  22.     }
  23.     type asym
  24.     playback.pcm {
  25.         type plug
  26.         slave.pcm {
  27.             @func concat
  28.             strings [ "dmix:" $CARD ]
  29.         }
  30.     }
  31.     capture.pcm {
  32.         type plug
  33.         slave.pcm {
  34.             @func concat
  35.             strings [ "dsnoop:" $CARD ]
  36.         }
  37.     }
  38. }
  39.  
  40. <confdir:pcm/surround40.conf>
  41.  
  42. VIA8233A.pcm.surround40.0 {
  43.     @args [ CARD ]
  44.     @args.CARD {
  45.         type string
  46.     }
  47.     type hooks
  48.     slave.pcm {
  49.         type hw
  50.         card $CARD
  51.         device 0
  52.     }
  53.     hooks.0 {
  54.         type ctl_elems
  55.         hook_args [
  56.             {
  57.                 name "Swap Surround Slot"
  58.                 device 0
  59.                 lock true
  60.                 preserve true
  61.                 value false
  62.                 optional true
  63.             }
  64.             {
  65.                 name "Channel Mode"
  66.                 preserve true
  67.                 value "4ch"
  68.                 lock true
  69.                 optional true
  70.             }
  71.             # for old drivers
  72.             {
  73.                 name "Line-In As Surround"
  74.                 preserve true
  75.                 value true
  76.                 optional true
  77.             }
  78.             {
  79.                 name "Surround Down Mix"
  80.                 preserve true
  81.                 value off
  82.                 lock true
  83.                 optional true
  84.             }
  85.         ]
  86.     }
  87. }
  88.  
  89. <confdir:pcm/surround41.conf>
  90. <confdir:pcm/surround50.conf>
  91. <confdir:pcm/surround51.conf>
  92.  
  93. VIA8233A.pcm.surround51.0 {
  94.     @args [ CARD ]
  95.     @args.CARD {
  96.         type string
  97.     }
  98.     type hooks
  99.     slave.pcm {
  100.         type hw
  101.         card $CARD
  102.         device 0
  103.     }
  104.     hooks.0 {
  105.         type ctl_elems
  106.         hook_args [
  107.             {
  108.                 name "Swap Surround Slot"
  109.                 device 0
  110.                 lock true
  111.                 preserve true
  112.                 value true
  113.                 optional true
  114.             }
  115.             {
  116.                 name "Channel Mode"
  117.                 preserve true
  118.                 value "6ch"
  119.                 lock true
  120.                 optional true
  121.             }
  122.             # for old drivers
  123.             {
  124.                 name "Line-In As Surround"
  125.                 preserve true
  126.                 value true
  127.                 optional true
  128.             }
  129.             {
  130.                 name "Mic As Center/LFE"
  131.                 preserve true
  132.                 value true
  133.                 optional true
  134.             }
  135.             {
  136.                 name "Surround Down Mix"
  137.                 preserve true
  138.                 value off
  139.                 lock true
  140.                 optional true
  141.             }
  142.             {
  143.                 name "Center/LFE Down Mix"
  144.                 preserve true
  145.                 value off
  146.                 lock true
  147.                 optional true
  148.             }
  149.         ]
  150.     }
  151. }
  152.  
  153. <confdir:pcm/iec958.conf>
  154.  
  155. VIA8233A.pcm.iec958.0 {
  156.     @args [ CARD AES0 AES1 AES2 AES3 ]
  157.     @args.CARD {
  158.         type string
  159.     }
  160.     @args.AES0 {
  161.         type integer
  162.     }
  163.     @args.AES1 {
  164.         type integer
  165.     }
  166.     @args.AES2 {
  167.         type integer
  168.     }
  169.     @args.AES3 {
  170.         type integer
  171.     }
  172.     type hooks
  173.     slave.pcm {
  174.         type hw
  175.         card $CARD
  176.         device 1
  177.     }
  178.     hooks.0 {
  179.         type ctl_elems
  180.         hook_args [
  181.             {
  182.                 name "IEC958 Playback AC97-SPSA"
  183.                 device 0
  184.                 lock true
  185.                 preserve true
  186.                 value 3
  187.             }
  188.             {
  189.                 name "IEC958 Playback Default"
  190.                 device 0
  191.                 lock true
  192.                 preserve true
  193.                 value [ $AES0 $AES1 $AES2 $AES3 ]
  194.             }
  195.             {
  196.                 name "IEC958 Playback Switch"
  197.                 device 0
  198.                 lock true
  199.                 preserve true
  200.                 value true
  201.             }
  202.             {
  203.                 name "IEC958 Output Switch"
  204.                 device 0
  205.                 lock true
  206.                 preserve true
  207.                 value true
  208.             }
  209.         ]
  210.     }
  211. }
  212.